package util.NodeQ0138;

/**
 * @Project : algorithm-learning-java
 * @Package : util
 * @Author : Ruoyu Wang
 * @User : Momenta
 * @DateTime : 2024/1/18 15:47
 */
public class Node {
    public int val;
    public Node next;
    public Node random;


    public Node() {
        this.next = null;
        this.random = null;
    }

    public Node(int val) {
        this.val = val;
        this.next = null;
        this.random = null;
    }

    public Node(int val, Node next) {
        this.val = val;
        this.next = next;
    }

    public Node(int val, Node next, Node random) {
        this.val = val;
        this.next = next;
        this.random = random;
    }
}